package soft.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import soft.pojo.Teacher;


@Mapper
@Repository
public interface TeacherMapper {
	Teacher getByName(String tName);
	Teacher getById(String tId);
	Teacher login(@Param("tId") String tId, @Param("password") String password);
	List<Teacher> getAll();
	boolean addTeacher(Teacher bean);
	boolean updateTeacher(Teacher bean);
	boolean deleteTeacher(String tId);
	List<Teacher> getTeacherLikeName(String tName);
}
